<div style="text-align:center;">
	<img src="images/logoGrande.png" alt="- " />
<span class="titleGrande">Brujulamovil.com</span>
</div>
<div style="text-align:center;">
<span class="small">Publicidad</span>
<br />
<?php
function curPageName() {
 return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
}

if (curPageName() == "index.php"){
	createthumb('images/bannerMoviles2.jpg','images/bannerMoviles2w.jpg',$requestingDevice->getCapability("resolution_height"),$requestingDevice->getCapability("resolution_width"));
?>
	<img src="images/bannerMoviles2w.jpg" alt="" />
<?php
}
else if (curPageName() == "resultados.php")
{
	createthumb('images/bannerMoviles1.jpg','images/bannerMoviles1w.jpg',$requestingDevice->getCapability("resolution_height"),$requestingDevice->getCapability("resolution_width"));

?>
	<img src="images/bannerMoviles1w.jpg" alt="" />
<?php
}
else
{
	$img_rand = rand(3, 5); 
	createthumb('images/bannerMoviles'.$img_rand.'.jpg','images/bannerMoviles'.$img_rand.'w.jpg',$requestingDevice->getCapability("resolution_height"),$requestingDevice->getCapability("resolution_width"));

?>
	<img src="images/bannerMoviles<?php echo $img_rand;?>w.jpg" alt="" />
<?php
}
?>
</div>
